#ifndef SOCKETS_H
#define SOCKETS_H

typedef int check_eof(const char *, int);

int make_connect(const char *host, int port,const char *localhost,int localport);
int send_message(int create_socket, const char* message, int size_message);
int recv_message(int create_socket, char** response, int* size_response, check_eof*);
int close_connect(int create_socket);

int dbl_nl(const char * buf, int size);
int read_all(const char * buf,int size);

extern int ck_long;

#endif
